package com.netx.data;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.util.HashMap;


public class SymbolEntity {

	// Parse fields:
	public String pName;
	public String pClassName;
	public String pAutoGenerateKeys;
	public final List<SymbolField> pPrimaryKeyFields;
	public final List<SymbolField> pFields;
	public final List<SymbolRelation> pRelations;
	public final List<String> pReplication;
	public final List<String> pConstraints;
	public SymbolRelation pRelation;
	// Analysis fields:
	public String aName;
	public String aClassName;
	public boolean aAutoGenerateKeys;
	public final List<String> aPrimaryKeyFields;
	public final Map<String,SymbolField> aFields;
	public final List<DataSink> aReplication;
	public final List<String[]> aConstraints;
	
	public SymbolEntity() {
		// Parse fields:
		pPrimaryKeyFields = new ArrayList<SymbolField>();
		pFields = new ArrayList<SymbolField>();
		pRelations = new ArrayList<SymbolRelation>();
		pReplication = new ArrayList<String>();
		pConstraints = new ArrayList<String>();
		// Analysis fields:
		aPrimaryKeyFields = new ArrayList<String>();
		aFields = new HashMap<String,SymbolField>();
		aReplication = new ArrayList<DataSink>();
		aConstraints = new ArrayList<String[]>();
	}
}
